Git Product home page Git Product logo

Comments (14)

andrewminton avatar andrewminton commented on July 17, 2024

Have you tried changing file permissions on the cache folder? is this a local build? or live server.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

@nathanhornby are you running the latest version ?

from cachelite.

nathanhornby avatar nathanhornby commented on July 17, 2024

Definitely latest version - permissions, didn't think of that (as it's able to write), could well be a factor. Does using that URL parameter also bypass the cache (as well as clearing it), thereby explaining why it appears to work when using it?

This is on a live build by the way, I pulled some minor code changes that weren't being reflected after thinking I'd flushed the cache.

On 12 Jan 2015, at 15:45, Nicolas Brassard [email protected] wrote:

@nathanhornby are you running the latest version ?


Reply to this email directly or view it on GitHub.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

Definitely latest version - permissions, didn't think of that

Sometimes you can write but can't delete...

Does using that URL parameter also bypass the cache (as well as clearing it), thereby explaining why it appears to work when using it?

It should not (https://github.com/symphonists/cachelite/blob/master/extension.driver.php#L259-L268) If it is, it's a bug...

Can you check for error in Symphony log ? (/symphony/system/log/)

And I am pretty sure that I am asking this for nothing, but you are logged in Symphony's backend right ?

from cachelite.

nathanhornby avatar nathanhornby commented on July 17, 2024

And I am pretty sure that I am asking this for nothing, but you are logged in Symphony's backend right ?

Now you've got me thinking. This was while testing some changes to the markup intended for mobile, and although I know I ran the flush on desktop at least once (where I would have been logged in), I'm not sure if that was before noticing the issue - so I might have had the frustration on a device I wasn't logged into.

If that is the issue, then it looks like the URL parameter bypasses the cache if you're not logged in. I don't know if that's really an issue though.

Edit: No errors relating to that in the logs by the way.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

then it looks like the URL parameter bypasses the cache if you're not logged in

The cache is url based, including any query string: so adding ?flush should give you a different version.

But the ?flush query-string must only work when the user in logged in Symphony.


BTW: https://github.com/DeuxHuitHuit/cache_management may help you clearing all the cache (instead of going with FTP or SSH...)

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

I might try to add some output in the log to be able to debug this a little bit easier..

@brendo what do you think about this idea ?

from cachelite.

nathanhornby avatar nathanhornby commented on July 17, 2024

Ah of course, hadn't thought of it that way.

On 12 Jan 2015, at 18:40, Nicolas Brassard [email protected] wrote:

then it looks like the URL parameter bypasses the cache if you're not logged in

The cache is url based, including any query string: so adding ?flush should give you a different version.

But the ?flush query-string must only work when the user in logged in Symphony.

BTW: https://github.com/DeuxHuitHuit/cache_management may help you clearing all the cache (instead of going with FTP or SSH...)


Reply to this email directly or view it on GitHub.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

@nathanhornby I've rested on a live site and everything seems to work... flush does what it's supposed to do.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

@nathanhornby Which version of Symphony are you running ?

from cachelite.

nathanhornby avatar nathanhornby commented on July 17, 2024

It's 2.5.something - I have a feeling it might just be the logged in thing I'm afraid. I'll confirm tomorrow.

On 12 Jan 2015, at 21:11, Nicolas Brassard [email protected] wrote:

@nathanhornby Which version of Symphony are you running ?


Reply to this email directly or view it on GitHub.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

Well I've tested it on a live site and everything seems to work. I'll be sending a PR with the log soon.

from cachelite.

nathanhornby avatar nathanhornby commented on July 17, 2024

Just done a quick test and it seemed to work as expected when logged in. Sorry to have wasted your time @nitriques - seems I must have been logged out on the device I ran the URL parameter on. What tricked me was that this appeared to work, but as pointed out this would have been because the URL parameter would have created a new page to be cached, so the content would be different when using that parameter.

from cachelite.

nitriques avatar nitriques commented on July 17, 2024

No problems Nathan! Those kind of things happens to me all the time.

I'll close the issue for now. Please re-open if anything gets weird again!

from cachelite.

Related Issues (20)

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.