I'm hoping that cough HWMBO has isn't you-know-what. He tested negative yesterday before we joined the parentals for dinner
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
test please delete
Collapse
This is a sticky topic.
X
X
Collapse
-
-
Originally posted by BR14 View PostComment
-
Originally posted by ladymuck View Post
You snuck in! The page reloading time was obviously working against meComment
-
Afternoon denizens
Another grey day but a balmy 15°C out there, though it'll plummet to 14° after dark; barometers are up at 1001/1009mBComment
-
Originally posted by eek View Post
Not trying to be awkward but given how other systems do it and how post Ids work, what about a completely different approach. Write an api that returns the number of likes and thanks against a postId and then use Javascript to call and display the results.
I suspect that approach may be more robust than you plan.
Also remember that the x to y posts of z figure may well be wrong - remember that when I go to the latest post on TPD I end up seeing page 34505 at the moment due to the number of people I have on ignore while WTFH ends up on page 38000 or so as he can't escape the soft deleted posts.
And TBH I'm not keen on things that break if JavaScript is disabled
Good point about the x to y of z thing though; I may have to implement a new internal API instead. Though TBH it may not matter, as all I need is to know is if the thread size is greater than some arbitrary cutoff, so a few hundred or even few thousand posts here and there may not matter. It's just to stop the system attempting to serialise an array that's too large and thus causes an out-of-memory error in the PHP process. As I can make that cutoff comparatively low and make the extent around the current node (i.e. the specific post on the page being viewed whose thanks and likes are being counted) comparatively large (i.e. spanning a couple of hundred pages), there should be very few cases where it has an effect, and all that would happen in the case of a cache miss caused by it is that the cached values would have to be recalculated.
So if you came to a page where several posts were ignored, the mechanism I envisage would not take into account your ignore list; it would just get all posts for that thread for a certain distance either side of the first one that was visible to you, up to my arbitrary limit, and cache their thanks/likes counts. Then if I, without any ignored users, came to the page that contained that first post for me, those values would already be cached even though you never saw them.
There might be a bit of cache thrashing if someone (probably me or DrS) goes off to look up something in TPD from 2008 while other, normal people are trying to look at the last page, but I'll cross that bridge when I come to itComment
-
And TBH I'm not keen on things that break if JavaScript is disabledbloggoth
If everything isn't black and white, I say, 'Why the hell not?'
John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)Comment
-
Originally posted by xoggoth View Post
Disabling javascript must prevent people from doing lots of stuff, all the online payment methods I've looked at are javascript based.merely at clientco for the entertainmentComment
-
-
-
Originally posted by NickFitz View Postmerely at clientco for the entertainmentComment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- The truth of umbrella company regulation is being misconstrued Today 09:23
- Labour’s plan to regulate umbrella companies: a closer look Nov 21 09:24
- When HMRC misses an FTT deadline but still wins another CJRS case Nov 20 09:20
- How 15% employer NICs will sting the umbrella company market Nov 19 09:16
- Contracting Awards 2024 hails 19 firms as best of the best Nov 18 09:13
- How to answer at interview, ‘What’s your greatest weakness?’ Nov 14 09:59
- Business Asset Disposal Relief changes in April 2025: Q&A Nov 13 09:37
- How debt transfer rules will hit umbrella companies in 2026 Nov 12 09:28
- IT contractor demand floundering despite Autumn Budget 2024 Nov 11 09:30
- An IR35 bill of £19m for National Resources Wales may be just the tip of its iceberg Nov 7 09:20
Comment