Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
checked.cache spam #94
Got an odd issue using 2.6.1 with opencart 2.2.
the checked.cache file is full of duplicate references to /vendor/autoload.php - it is a pretty busy site with a lot of ajax so the number of requests is pretty high.. so after 6 days we have over half a million records in the checked.cache file - which is causing massive slow down (due to the amount of array looping)
If we delete the checked.cache site performance comes back - but the file is again receiving a new /vendor/autoload line on every request.
Any ideas how to stop this?
@JAY6390 - Thanks for the quick response!
The vendor directory is the one that is provided with the 2.2 compiled download from opencart.com with the addition of the bugsnag library.
The directory is outside of the public_html doc root
In the file the duplicates are all full path
where as other entries are like this
and only appear once.
There is one odd thing with this install, in the config.php at the root declares its paths like this.
define('DIR_APPLICATION', './catalog/'); define('DIR_SYSTEM', './system/'); define('DIR_IMAGE', './image/'); define('DIR_LANGUAGE', './catalog/language/'); define('DIR_TEMPLATE', './catalog/view/theme/'); define('DIR_CONFIG', './system/config/'); define('DIR_CACHE', './system/storage/cache/'); define('DIR_DOWNLOAD', './system/storage/download/'); define('DIR_LOGS', './system/storage/logs/'); define('DIR_MODIFICATION', './system/storage/modification/'); define('DIR_UPLOAD', './system/storage/upload/');
Should I change these to full paths maybe?
@daveyoi Yes I'd definitely change those to full paths. Those should always be full paths - I've seen partial paths like that cause issues in the past with third party applications. The issue with the autoload can probably be solved in a simpler manner, as VQMod won't actually modify any files outside the root of the site (or shouldn't!). Open your
Change it to
That should stop vqmod applying to it, as it won't match. You may need to refresh your modifications in the opencart admin under
@JAY6390 Cheers mate.. but no go on that quick fix - vqmod still adds modCheck to that line.
Also correcting the paths in config.php didn't fix it - but i felt better for changing it to full paths :)
For now we have disabled our bugsnag module - and removed the vendor directory as it is not crucial to the running of the live site.
simply renaming the autoload.php file would probably been enough. Looks like just adding a space after the