Bharat Mediratta
bf2bb3e1ea
Update copyright to 2012. #1822
2012-02-27 09:48:23 -08:00
Bharat Mediratta
065dd32f31
Add tags for all Cache::instance()->set calls that don't have one.
...
Fixes #1818 .
2012-02-06 19:48:52 -08:00
Bharat Mediratta
423daa52d5
Update copyright to 2011.
2011-01-21 23:01:06 -08:00
Bharat Mediratta
b42fcb9cda
Use db::expr instead of "new Database_Expression". Resolves #1560 .
2010-12-28 23:10:05 -08:00
Bharat Mediratta
5f4ab7fd76
Shuffle up the way we figure out which image to rebuild next so that
...
multiple concurrent tasks actually work in parallel and don't stomp
on each other. Fixes #1498 .
2010-11-21 13:03:02 -08:00
Bharat Mediratta
a153ca0829
Detect the case where there are no more broken images and skip to the end. Fixes #1414 .
2010-10-02 17:04:37 -07:00
Bharat Mediratta
1a0d76c43e
When moving a single item, just copy its permissions from its parent
...
album. This is totally legal since an items permissions must be the
same as its parent's, and it's much faster for large installs where
a complete recalculation can be very costly. Should fix #1360 .
2010-09-13 22:23:09 -07:00
Bharat Mediratta
a98841613a
LOWER() the slug and name in the find_dupes functions since DISTINCT
...
is case sensitive, but our dupe validation is not. Fixes ticket #1367 .
2010-09-12 14:30:25 -07:00
Bharat Mediratta
2c717b18d3
Don't concatenate two strings together as an argument for t() or t2();
...
the l10n_scanner cannot parse it properly and drops those from the
localization list. Fixes ticket #1284 .
2010-08-29 20:04:02 -07:00
Bharat Mediratta
d9f8c8a295
Rebuild access_caches rows if they're missing, as necessary. Fixes ticket #1289 .
2010-08-14 14:56:28 -07:00
Bharat Mediratta
8559cdb5b6
Add docs reflecting that we may skip some items that have invalid parent_ids
2010-08-04 21:30:48 -07:00
Bharat Mediratta
ca54cdd644
While we're cleaning up albums, also find any cases where we have an
...
album_cover_item_id that points to an invalid item.
2010-08-01 21:44:24 -07:00
Bharat Mediratta
c33b24c9fa
Make maintenance mode a variable instead of a config. Then create
...
links on the Admin > Maintenance page to allow you to turn it on and
off. This should be efficient since we cache all vars and look them
up on every request anyway.
This also allows us to have the Fix task enable maintenance mode while
it's running which greatly reduces the chances that somebody will come
along and hork the database while we're tinkering with MPTT pointers.
Fixes ticket #1259 .
2010-08-01 21:00:30 -07:00
Bharat Mediratta
7b8ed10796
Add recovery code for dupe slugs and dupe names to the general purpose Fix
...
task. Fixes ticket #1260 .
2010-07-29 21:49:29 -07:00
Bharat Mediratta
b3c1b4633c
Combine the Fix MPTT and Fix Permissions tasks into one magical fix-it
...
task.
2010-07-28 22:42:04 -07:00
Bharat Mediratta
5be9ae3250
Add a new maintenance task that resyncs album .htaccess files with
...
database access intents. Use this to fix up .htaccess files after you
relocate your Gallery. Fixes ticket #1252 .
2010-07-25 11:10:42 -07:00
Bharat Mediratta
2cf5198353
Null out relative_path_cache and relative_url_cache after we update
...
the pointers in case the hierarchy was adversely affected by actions
when the MPTT pointers were desynced. Fixes ticket #1235 .
2010-07-21 11:34:19 -07:00
Bharat Mediratta
2657d08586
Move the "Fix MPTT" task from the rescue module into the main Gallery
...
module.
2010-04-04 14:46:44 -07:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Andy Staudacher
334cd2368d
Performance improvement: Load all translations of a locale as one serialized array from the Cache.
...
Until now, we loaded hundreds of translation messages row by row, and unserializing one by one at bootstrap time. That amounted to a significant percentage of the complete request time. This approach is more than 10x faster.
2010-02-21 23:50:01 -08:00
Tim Almdal
43985ea2fb
Update the description to reflect we are only removing "expired" files.
2010-02-01 08:35:23 -08:00
Tim Almdal
64e014203c
Correct the internationalization of the status message.
2010-02-01 08:15:49 -08:00
Bharat Mediratta
c050acf30a
Fix lots of warnings that pop up when we're in E_STRICT mode. They're
...
mostly issues around uninitialized variables, calling non-static
functions in a static context, calling Session functions directly
instead of on its singleton, passing non-variables by reference, and
subclasses not using the same interface as the parent class.
2010-01-31 16:07:41 -08:00
Bharat Mediratta
cfbbf9ef60
Convert __toString() to use (string) cast instead.
2010-01-27 21:58:06 -08:00
Tim Almdal
accd00464e
Add a maintenance task that will clear the expired files (older than 2 weeks) from var/logs and var/tmp. Fixes ticket #982
2010-01-26 07:03:14 -08:00
Andy Staudacher
120c9c749e
Change "fetch translations" task to fetch them in batches.
...
The request limit was in place already, but the client didn't respect it before, leading to unhappy users in case they had lots of 3rd party modules installed, or more than 2-3 locales enabled. This is all taken care of now.
2010-01-22 01:16:16 -08:00
Bharat Mediratta
d2cb217e20
Convert more database calls over to the new format
...
- admin/maintenance page loads, the rebuild thumbs/resizes task works
- Fixed up some conversion bugs in the Cache driver
2009-12-02 00:34:34 -08:00
Bharat Mediratta
2e420522ec
Preliminary work to cut over to Kohana 2.4
...
- Kohana::log() -> Kohana_Log::add()
- Kohana::config_XXX -> Kohana_Config::instance()->XXX
- Implement View::set_global in MY_View
- Updated Cache_Database_Driver to latest APIs
- ORM::$loaded -> ORM::loaded()
- Updated item::viewable() to use K2.4 parenthesization
2009-11-25 13:22:24 -08:00
Tim Almdal
bf4c518bb5
Store the directory, files and translation cache in the gallery3 cache instead of trying to store it in the task. It is possible with lots of modules and lots of incoming translations to go beyond the 64K limit in the task context. Possible fix for #886 .
2009-11-16 14:25:25 -08:00
Tim Almdal
ca37221337
When rebuilding dirty images, start a batch on initialization and stop it when the task is complete. Fixes ticket #670
2009-10-27 07:35:33 -07:00
Tim Almdal
ab5e680265
Clean up the task initialization for rebuild thumbs and resizes.
2009-09-27 20:31:56 -07:00
Tim Almdal
cd240ebaad
Refactored the rebuild_dirty_images handler to simplify the counting and end processing. It was getting all confused with trying to figure out the completed and remaining. Now on initiation it sets the total images that are dirty and then counts the completed until it equals the total, then exits. Fixes ticket #771
2009-09-24 20:06:14 -07:00
Bharat Mediratta
9237ab9bc1
Change graphics::generate() API so that it doesn't return a boolean,
...
instead it throws an exception if there's a problem. The normal case
for graphics::generate is that it's going to succeed. It'll only fail
if something un-handleable went wrong, so just use the resulting
exception.
2009-09-02 15:29:00 -07:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
Bharat Mediratta
b3f91167c1
Remove excess success logging. In the rebuild images case, it can
...
make a huge log file. In the l10n_client case, it's not really
necessary to know that level of detail and it makes for a weird API.
2009-07-19 13:55:22 -07:00
Tim Almdal
ac797e609c
Add task logging to the Update translations
2009-07-08 09:08:15 -07:00
Tim Almdal
47fbb56fa2
Added task logging to the Rebuild Images task.
2009-07-08 08:22:40 -07:00
Andy Staudacher
fb472da0ba
Ignore lib/ folders in l10n_scanner task.
...
1. Because it makes sense.
2. As a quick fix - For some reason it wouldn't work properly anymore now with the HTMLPurifier lib
2009-07-03 16:11:17 -07:00
Bharat Mediratta
c7f49fd1ec
Skip over busted images when rebuilding. Change graphics::generate()
...
to return true/false on whether or not it could rebuild the image
properly, then track the broke images in the task and ignore them.
Fixes ticket #344 .
2009-06-04 23:20:54 -07:00
Bharat Mediratta
88a3d43ba9
Update all references to the core application to now point to the
...
gallery module. This type of mass update is prone to some small bugs.
2009-05-27 16:17:29 -07:00