ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: ahrasis on February 03, 2017, 10:39:16 pm

Title: xCache Problem
Post by: ahrasis on February 03, 2017, 10:39:16 pm
I am not so sure that it is a bug but I posted it in here anyway.

I am using xCache and I set xCache as my level 1 caching accelerator. Then I insert and save my userid and password for it.

The problem is each time I install / remove a package / clear cache  it will open a pop up of Authentication Required.

I don't think it should work that way after userid and password is already supplied but I am not so sure especially when accessing a non-xcache admin page. So I think this could be a bug though it may not be.

The reason is I believe if the same credentials need to supplied again in the pop up, then there is no need to be supplied and saved the same in ElkArte Caching Settings page, as it will be redundant / useless.

Furthermore, if I cancel, I will get a 401 error page but I can refresh that page and get you have send this post message error message. The install / uninstall works even by cancelling. Which is weird.

Moreover, if I use other userid or password like my forum admin credentials, they also work. Which is weird too.

I prefer not to disable admin authentication for xcache though it is possible and never tested it to run in such a way.

I also can use memcache or ACP as an alternative but I still wonder why this happened.
Title: Re: xCache Problem
Post by: emanuele on February 04, 2017, 02:41:35 am
Quote from: ahrasis – Furthermore, if I cancel, I will get a 401 error page but I can refresh that page and get you have send this post message error message. The install / uninstall works even by cancelling. Which is weird.
Weird but expected, because the installation is "done" when you click on the "install", not when you see the page with the successful message. If it makes sense. lol
Title: Re: xCache Problem
Post by: ahrasis on February 04, 2017, 02:49:17 am
Yeah. That's true also. lol
Title: Re: xCache Problem
Post by: Spuds on February 04, 2017, 08:52:09 am
You should not be getting the xCache authentication popup if you have entered the right uid / password in the cache options page in the ACP, thats the reason we added those fields..  Those values are saved in your Settings.php file.

Also with xCache, be sure you don't have its op cache enabled if you are also using PHP's zend op cache (5.6 or is that 5.5+), that can cause problems. 
Title: Re: xCache Problem
Post by: ahrasis on February 04, 2017, 09:32:59 am
Thanks for the tip. I will test that and report back soonest.
Title: Re: xCache Problem
Post by: emanuele on June 23, 2017, 05:43:38 pm
Were you able to check it? :D
Title: Re: xCache Problem
Post by: ahrasis on August 05, 2017, 11:57:26 am
Sorry. But I stop using php5 for all my sites except where there is no support for php7. So I did not test xCache further since it is not available for php7.
Title: Re: xCache Problem
Post by: live627 on August 08, 2017, 04:49:21 pm
xcache requires authentication for clearing the cache, it sees that as an administrative function. Really weird.
Title: Re: xCache Problem
Post by: ahrasis on August 11, 2017, 10:42:47 am
Yup. It is weird especially if you still need to use it. Otherwise, just move on to php7.
Title: Re: xCache Problem
Post by: emanuele on August 13, 2017, 05:04:07 pm
So, is that an issue or just a weird config setting?
Title: Re: xCache Problem
Post by: live627 on August 13, 2017, 07:05:26 pm
I think config. xcache is special. :/
Title: Re: xCache Problem
Post by: ahrasis on August 14, 2017, 05:27:07 am
That was an issue to me. But since nobody is porting it to php7, I will not waste my time to try.