Giter Site home page Giter Site logo

8wiredigital / magento2-module-primer Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 7.0 281 KB

Full Page Cache Priming tool for Magento 2

Home Page: https://www.8wiredigital.co.nz/

License: Open Software License 3.0

PHP 100.00%
magento2 varnish cache crawler php magento2-module

magento2-module-primer's Introduction

Packagist Codacy Badge Packagist

Magento 2 Cache Primer

A full page cache priming tool for Magento 2

Requests to whitelisted actions are logged to a history table with a higher priority given to pages that are viewed most frequently. A console and cron task is provided to initiate the crawler and prime pages in the queue from highest to lowest priority. Supports multiple store views and X-Magento-Vary cookies.

Recordit GIF

Usage

php bin/magento primer:crawler:run   # Run crawler task
php bin/magento primer:flush         # Flush urls to force a recrawl

Provided by 8 Wire Digital

magento2-module-primer's People

Contributors

andrewkett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

magento2-module-primer's Issues

broken in 2.3.1, possibly 2.3

PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in /var/www/src/vendor/eightwire/magento2-module-primer/Model/Crawler.php:60
Stack trace:
#0 /var/www/src/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): EightWire\Primer\Model\Crawler->__construct(Object(EightWire\Primer\Model\PageRepository), Object(Magento\Framework\Logger\Monolog), Object(Magento\Store\Model\StoreManager), Object(Magento\Framework\App\ObjectManager), Object(Magento\Framework\App\Config), Object(Magento\Framework\App\Cache\Manager), Object(EightWire\Primer\Helper\Config))
#1 /var/www/src/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('EightWire\Prime...', Array)
#2 /var/www/src/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('EightWire\Prime...')
#3 /var/www/src/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectM in /var/www/src/vendor/eightwire/magento2-module-primer/Model/Crawler.php on line 60

Invallid URL with Store Code in Urls

When having a multi-store setup, with the option:
Store->Configuration-> General -> Web -> Add Store Code to Urls to enabled.

In the DB is the product url:

  • /nl/product1.html
  • /en/product1.html

And the crawlers is trying to visited:
www.example.org/nl/nl/product1.html
Instead of:
www.example.org/nl/product1.html

I Think this is because the Database entry contains the Store Code and the function getStoreUrl() inside /Model/Page.php at Line 118 is getting the StoreUrl also with the Storecode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.