Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: live627 on June 12th, 2013, 05:47 AM

Title: Language cache doesn't turn off
Post by: live627 on June 12th, 2013, 05:47 AM
I have my cache disabled but every time I refresh, new lang cache files appear.
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 12th, 2013, 05:52 AM
That's completely intentional. The language cache is separate to the regular backend. Only the regular backend is touched by that setting.

It's done that way because otherwise you'd have quite a few queries per page. The language cache is designed to be long term and changes should be done via the admin panel.
Title: Re: Language cache doesn't turn off
Post by: Nao on June 12th, 2013, 07:00 PM
Yeah, the only drawback is that Wedge doesn't automatically updates files when needed, so each time I update the website, I have to manually remove the files from the cache folder, which is pretty boring to do...
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 12th, 2013, 09:10 PM
You don't use the button I specifically added for you? :sob:
Title: Re: Language cache doesn't turn off
Post by: Nao on June 13th, 2013, 10:45 AM
That would imply typing my pw to access the admin area, because only Opera supports this in its wand.
Maybe, if we rewrote the admin login to ask for the user name as well..? Then it'd be supported by Chrome's auto-fill... :^^;:
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 13th, 2013, 05:20 PM
It might have been nice if this had been mentioned sooner, I wouldn't have wasted time adding it to the admin panel :P

But no, I'm still not changing the language caching to adhere to the other caching settings.
Title: Re: Language cache doesn't turn off
Post by: Nao on June 13th, 2013, 06:14 PM
Quote from Arantor on June 13th, 2013, 05:20 PM
It might have been nice if this had been mentioned sooner, I wouldn't have wasted time adding it to the admin panel :P
I used it a couple of times in the beginning, but then I got bored of entering my password, that's all.. Doesn't mean I won't use it again -- if anything, once I get bored of emptying the cache folder manually..... :lol:

Actually, I'd even forgotten about the feature, eh... :^^;:
So, do you have any idea why Chrome will outline the password confirmation area (indicating that it HAS it stored in its database), but won't fill it in by default..?
Title: Re: Language cache doesn't turn off
Post by: live627 on June 13th, 2013, 10:24 PM
Quote from Nao on June 13th, 2013, 10:45 AM
That would imply typing my pw to access the admin area, because only Opera supports this in its wand.
Maybe, if we rewrote the admin login to ask for the user name as well..? Then it'd be supported by Chrome's auto-fill... :^^;:
Admin login password auto-fills in Firefox.
Title: Re: Language cache doesn't turn off
Post by: Nao on June 13th, 2013, 10:34 PM
Yup, probably, but not in Chrome, which is what I'm using these days, either through Chrome Canary, Opera 15 or Sleipnir... ;)
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 14th, 2013, 01:08 AM
I don't let my browser save passwords in the first place, so no idea, sorry.

I guess I could write a plugin that you can use here to trigger it that only requires a GET session check rather than a POST session check and let you put it in the main admin menu?
Title: Re: Language cache doesn't turn off
Post by: Nao on June 14th, 2013, 03:23 PM
Hmm, dunno... Well, OTOH, if it's a plugin, it's a no-brainer. ;)
Good idea, I'd say... :D
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 14th, 2013, 05:00 PM
You mean like this? (10 minutes work)

OK, it isn't pretty, it doesn't have a magic language string or anything for the menu item but that's probably for the best...
Title: Re: Language cache doesn't turn off
Post by: live627 on June 14th, 2013, 11:32 PM
Quote from Arantor on June 14th, 2013, 05:00 PM
You mean like this? (10 minutes work)

OK, it isn't pretty, it doesn't have a magic language string or anything for the menu item but that's probably for the best...
It's perfect!
Title: Re: Language cache doesn't turn off
Post by: Nao on June 14th, 2013, 11:50 PM
My hero!

Changed the code to this, so that the entry is at the end, and separated with a rule:

Code: [Select]
$items['admin']['sub_items'] = array_merge(
$items['admin']['sub_items'],
array(
'',
'langcache' => array(
'title' => 'Flush Lang Cache', // Don't need to load something every page just for this!
'href' => '<URL>?action=langcache;' . $context['session_query'],
'show' => we::$is_admin,
)
)
);
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 14th, 2013, 11:57 PM
Heh, I figured you'd probably move it around but that's the beauty of it, it's not exactly hard to do ;)
Title: Re: Language cache doesn't turn off
Post by: Nao on June 15th, 2013, 12:05 AM
Still don't have a clue about making plugins, but modifying them sure is fun!!
Gotta make lots of 'dummy' plugins, to inspire future authors!
Title: Re: Language cache doesn't turn off
Post by: Arantor on June 15th, 2013, 12:08 AM
Well, you see how the plugin works, right? Just do that again...
Title: Re: Language cache doesn't turn off
Post by: Nao on June 15th, 2013, 12:11 AM
Always got something more important to do... Sasuga Nao desu!
G'night!