-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APC Cache TTL not working #21945
Comments
Hello @DevSTG
Where excatly did you set the $ttl value, in which class or controller? Thanks! |
I set $ttl value in my module class (see method Mymodule::testCacheTtl() in code that I included) and tried to display it using displayTop hook (hookDisplayTop() method above). |
Hello @DevSTG As you can see in the screenshot below my APC settings: And in my BO, I enabled the Use Cache option and choose CacheApc: And as you explained to me I add the code in a module. And yet, I couldn't manage to reproduce your issue with PS1.7.6.8. Thanks! |
What additional info would you need? |
Ping @PrestaShop/prestashop-core-developers what do you think of this problem? |
@hibatallahAouadni Are you able to reproduce, we need to be sure the problem come from the PrestaShop core and not the APC/APCU configuration :) |
@PierreRambaud I didn't manage to reproduce the issue |
@hibatallahAouadni did you try to reproduce th issue on PHP version: 5.6.x ? |
We are not supporting PHP 5.6 anymore. |
It's quite important news, I think I shouldn't be able to install PS if my PHP version is not supported. |
@DevNet Here's the PHP Compatibility Chart. |
@PierreRambaud The chart you provided suggests that my PS version 1.7.6.x seems to be ok with my PHP version 5.6.x, so maybe the chart should be updated? |
Not it is, but we are now working on 1.7.7.x and develop branches only. There will be no update on 1.7.6.x branch. |
Hello @DevSTG Since we had no news from you for more than 20 days, I'll close this ticket to avoid cluttering up the backlog. Thanks! |
Describe the bug
I use CacheApc as my caching system.
No matter what $ttl value I set in $cache->set($cacheId, $result, $ttl) method cached result is stored for about a minute.
I wrote a module to test APC:
and it always displays time value >= 1 minute past.
See: https://sukcesgroup.pl/sklepnowy/pl/kontakt
Here are my APC settings: https://sukcesgroup.pl/sklepnowy/apc.png
Expected behavior
APC storing values for given ttl value
Steps to Reproduce
Enable APC caching, try to store and restore some values
Screenshots
If applicable, add screenshots or screen recordings to help explain your problem.
Additional information
The text was updated successfully, but these errors were encountered: