ElkArte Community

Title: Small bug with Recycle bin?
Post by: radu81 on May 17, 2015, 06:42:10 pm
I had 3 pages of topics in Recycle bin, I deleted everything inside but I still se the page number 1 2 3, I click them but there is no topic inside. Is this a bug?

I used "Find and repair any errors" and the problem was solved
Title: Re: Small bug with Recycle bin?
Post by: Spuds on May 17, 2015, 07:00:12 pm
I've seen that as well, probably a cache bug as the issue self clears in a short time.   But since I'm not sure, I'm going to blame @emanuele
Title: Re: Small bug with Recycle bin?
Post by: emanuele on May 18, 2015, 02:31:35 am
/me blames the cache just to stay on the safe side. :P

Well, first of all: do you have the cache enabled?

@Spuds do we have the opcache invalid thingy on the file-cache?
Title: Re: Small bug with Recycle bin?
Post by: radu81 on May 18, 2015, 03:15:09 am
cache by files is enabled. There is no problem for me to leave it as it is, it has no impact to my users, only the admin can see the Recycle booard in my forum
Title: Re: Small bug with Recycle bin?
Post by: emanuele on May 18, 2015, 03:29:33 am
That usually happens on any board, of course it's just a matter of few seconds (I think 1 minute max), but it happens.
I seem to remember the same behaviour in SMF.
This is one of those cases where the cache should be invalidated after a change has been made, a change known to generate inconsistency. It shouldn't be too difficult to fix... I think.
Title: Re: Small bug with Recycle bin?
Post by: emanuele on May 18, 2015, 11:56:22 am
Possible fix:
https://github.com/emanuele45/Dialogo/commit/fac4bfb1be9723714c6b80f3a855da2841dbfd3c
Title: Re: Small bug with Recycle bin?
Post by: Spuds on May 18, 2015, 10:12:31 pm
Quote from: emanuele – @Spuds do we have the opcache invalid thingy on the file-cache?
Right now we have a warning message that if you have the build in opcahce enabled (5.4)+ and are using ElkArte filebased cache, then you could have collisions. 
Quote$txt['cache_conflict'] = 'You are using PHP\'s opcache with ElkArte\'s file based caching.  For best results you should blacklist ElkArte\'s cache directory (' . CACHEDIR . '/*) using the opcache.blacklist_filename directive.';
The alternative is to simply disable it (filebased) if the opcache is enabled and active.
Title: Re: Small bug with Recycle bin?
Post by: radu81 on May 19, 2015, 02:32:04 am
No problem for me if it's just a cache "problem" and gets solved after a few seconds ;)
As for the cache in Elkarte I will write another topic
Title: Re: Small bug with Recycle bin?
Post by: emanuele on May 19, 2015, 03:12:40 am
Quote from: Spuds – The alternative is to simply disable it (filebased) if the opcache is enabled and active.
Yeah... add the opcache thingy may make any advantage irrelevant and even nullify the cache may still give some false positive.
I have to find a way to benchmark that cache. :P

Quote from: radu81 – No problem for me if it's just a cache "problem" and gets solved after a few seconds ;)
No need to worry, it's just that is annoying. :P
Title: Re: Small bug with Recycle bin?
Post by: Spuds on May 19, 2015, 08:51:56 am
My "gut" says filebased should go away.  I think the concept is fine of course, but given real world servers and sql engines, I think it would take a select combination of load levels, disks, etc to perhaps see a tangible benefit on either server load or improved user experience.