Skip to content
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

reset cache when new post #362

Open
B4rb3rouss opened this issue Feb 7, 2018 · 4 comments
Open

reset cache when new post #362

B4rb3rouss opened this issue Feb 7, 2018 · 4 comments
Labels

Comments

@B4rb3rouss
Copy link
Contributor

B4rb3rouss commented Feb 7, 2018

When a new post is published, a mecanism to reload cache might be considered. (for rss.php as example).

(btw, I have many "cache" files for RSS on my install)

@B4rb3rouss
Copy link
Contributor Author

B4rb3rouss commented Feb 7, 2018

Maybe when submitting the form when posting a new article, a small PHP line can set the cache time too old :

$flux_cache_lv2_path = DIR_VHOST_CACHE.'cache2_rss_'.substr(md5((isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : ''), 0, 8).'.dat';

// if cache file exists
if (is_file($flux_cache_lv2_path)) {
    touch($flux_cache_lv2_path);
}

@remrem remrem added the Bug label Feb 17, 2018
@remrem remrem added this to the 3.7.7 milestone Feb 17, 2018
@remrem
Copy link
Contributor

remrem commented Feb 17, 2018

Yep, considering that the feed must be kept up-to-date when adding / removing content, it seems to me to be a bug.

@remrem remrem modified the milestones: 3.7.7, 3.8.0 Apr 6, 2018
@remrem
Copy link
Contributor

remrem commented Apr 6, 2018

I took a look at the cache system (level 2) and there is no way to remove the caches related to articles, you must delete everything. So, I think the best is to push back to the BT 3.8 and review it a bit, at least the naming system for cache files.

Good for you ?

@B4rb3rouss
Copy link
Contributor Author

As I have no better answer, yes, that's good to me.

@remrem remrem removed this from the 3.8.0 milestone May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants